#!/bin/bash

XPECTED_ARGS=1

#if [ $# -ne $EXPECTED_ARGS ]
#then
#  echo ""
#  echo "Usage: `basename $0` <keywords>"
#  echo ""
#  echo "Where:"
#  echo "    <keywords> is the query to search for within movie titles"
#  echo "    Note: Query servers must already be running"
#  exit $E_BADARGS
#fi

node=$1
shift
title="$@"
CMD="java -jar ../imdbclient.jar topology.ini insert $node $title"
echo $CMD
eval "($CMD) | tee insert.log "
